package springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
 
@Controller
@RequestMapping("/cas")
public class CasController {

	@RequestMapping("/index")
	@ResponseBody
	public String index() {
		return "cas client success";
	}
	@RequestMapping("/logout")
	public String logout() {
		return "redirect:http://localhost:8443/cas/logout?service=http://www.baidu.com";
//		return "redirect:http://localhost:8443/cas/logout?service=http://localhost:8788/cas/index";
	}

}